package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: chen
 * @Date:  2025/8/30 13:57
 * @Description: 
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_repais")
public class Repais implements Serializable {
    @TableId(value = "repais_id", type = IdType.AUTO)
    private Integer repaisId;

    /**
     * 单号
     */
    @TableField(value = "repais_code")
    private String repaisCode;

    /**
     * 报修设备
     */
   @NotBlank(message = "设备不能为空")
    private String repaisName;

    /**
     * 类目
     */
    @NotNull(message = "类目不能为空")
    private Integer repaisType;

    /**
     * 区域
     */
    @NotNull(message = "区域不能为空")
    private Integer repaisArea;

    /**
     * 报修人
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 报修内容
     */
    @NotBlank(message = "报修内容不能为空")
    private String repaisContent;

    /**
     * 报修时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 承修人
     */
    @TableField(value = "repais_user_id")
    private Integer repaisUserId;

    /**
     * 0待受理1受理2派单3转单
     */
    @TableField(value = "repais_status")
    private Integer repaisStatus;

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private Integer pageNum;

    @TableField(exist = false)
    private Integer pageSize;
    @TableField(exist = false)
    private String areaName;
    @TableField(exist = false)
    private String typeName;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private List<Imgs> imgs;

    @TableField(exist = false)
    private String repaisUsername;

}